package ch03.Shangji;

import ch03.Shangji.dao.AddDao;
import ch03.Shangji.dao.CalculationDao;
import ch03.Shangji.factory.AddFactory;
import ch03.Shangji.factory.CalculationFactory;
import ch03.Shangji.factory.ResultsFactory;

public class Test {
    public static void main(String[] args) {
//        CalculationDao dao = CalculationFactory.instance("*");
//        System.out.println(dao.result(1,3));

        CalculationFactory factory = new AddFactory();
        CalculationDao dao = factory.instance();
        System.out.println(dao.result(10,1111));
    }
}
